<?php

namespace houniao\api\v1;

use houniao\Request;

class AfterSale extends Request
{
    //售后原因
    public function list(array $data=[]){
        $this->type='POST';
        $this->path='/after_sale/get_reason';

        $this->data= array_merge($this->data,$data);
        return $this->exec();
    }

    //售后申请
    public function apply(array $data=[]){
        $this->type='POST';
        $this->path='/after_sale/apply';

        $this->data= array_merge($this->data,$data);
        return $this->exec();
    }

    //售后详情
    public function detail(array $data=[]){
        $this->type='POST';
        $this->path='/after_sale/detail';

        $this->data= array_merge($this->data,$data);
        return $this->exec();
    }

    //退回发货
    public function returnLogistics(array $data=[]){
        $this->type='POST';
        $this->path='/after_sale/submit_logisticsl';

        $this->data= array_merge($this->data,$data);
        return $this->exec();
    }

    //寄回地址详情
    public function address(array $data=[]){
        $this->type='POST';
        $this->path='/after_sale/get_address';

        $this->data= array_merge($this->data,$data);
        return $this->exec();
    }
}